home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / games / larn12s.arc / LARN.ARC / MAKEFILE < prev    next >
Text File  |  1987-10-28  |  4KB  |  95 lines

  1. # Configuration options
  2. #  LARNHOME is the directory where the larn data files will be installed.
  3. #  BINDIR is the directory where the larn binary will be installed.
  4.  
  5. LARNHOME = d:\games\larn
  6. #    The current directory unless changed in larn.opt
  7. BINDIR = d:\games
  8. CC= cc
  9.  
  10. #    gemdos.o, msdos.o, or null for Unix
  11. DOS.O = gemdos.o
  12. #    name of the target
  13. GAME = larn.ttp
  14.  
  15. # -ltermlib may need to be changed to -ltermcap on some systems
  16. TERMLIB= -ltermcap
  17.  
  18. # Available compile time options:
  19. #   WIZID=xxx  - this is the userid (or playerid) of the wizard.  Default is
  20. #        zero (superuser), which disables all wizard functions.
  21. #        Players must have this userid (or playerid) in order to
  22. #        become the non-scoring wizard player.  Definition of WIZID
  23. #        to non-zero will enable the special wizard debugging
  24. #        commands.  For root to become wizard, use WIZID= -1.
  25. #   EXTRA      - incorporates code to gather additional performance statistics
  26. #   TIMECHECK  - incorporates code to disable play during working hours (8-5)
  27. #   SYSV       - use system III/V (instead of V7) type ioctl calls
  28. #   BSD        - use BSD specific features (mostly timer and signal stuff)
  29. #   BSD4.1     - use BSD4.1 to avoid some 4.2 dependencies (must be used with
  30. #                    BSD above; do not mix with SYSV)
  31. #   HIDEBYLINK - if defined, the program attempts to hide from ps
  32. #   DOCHECKPOINTS - if not defined, checkpoint files are periodically written
  33. #                   by the larn process (no forking) if enabled in the .larnopts
  34. #        description file.  Checkpointing is handy on an unreliable
  35. #        system, but takes CPU. Inclusion of DOCHECKPOINTS will cause
  36. #        fork()ing to perform the checkpoints (again if enabled in
  37. #        the .larnopts file).  This usually avoids pauses in larn
  38. #        while the checkpointing is being done (on large machines).
  39. #   SAVEINHOME - put save files in users HOME instead of LARNHOME, the default
  40. #    VER        - This is the version of the software, example:  12
  41. #    SUBVER     - This is the revision of the software, example:  1
  42. #    FLUSHNO=#  - Set the input queue excess flushing threshold (default 5)
  43. #    NOVARARGS  - Define for systems that don't have varargs (a default
  44. #            varargs    will be used).
  45. #    MACRORND   - Define to use macro version of rnd() and rund()
  46. #            (fast & big)
  47. #    UIDSCORE   - Define to use user id's to manage scoreboard.  Leaving this
  48. #        out will cause player id's from the file ".playerids" to be used
  49. #        instead.  (.playerids is created upon demand).  Only one
  50. #        entry per id # is allowed in each scoreboard
  51. #        (winning & non-winning).
  52. #    VT100      - Compile for using vt100 family of terminals.  Omission of this
  53. #        define will cause larn to use termcap, but it will be MUCH
  54. #        slower due to an extra layer of output interpretation. 
  55. #        Also, only VT100 mode allows 2 different standout modes,
  56. #        inverse video, and bold video.  And only in VT100 mode is
  57. #        the scrolling region of the terminal used (much nicer than
  58. #        insert/delete line sequences to simulate it, if VT100 is
  59. #        omitted).
  60. #    NONAP      - This causes napms() to return immediately instead of delaying
  61. #        n milliseconds.  This define may be needed on some systems
  62. #        if the nap stuff does not work correctly (possible hang).
  63. #        nap() is primarilly used to delay for effect when casting
  64. #        missile type spells.
  65. #
  66.  
  67. OPTIONS = -DSYSV -DVER=12 -DSUBVER=0 -DWIZID=-1 -DNOVARARGS -DDGK
  68.  
  69. # End of configurable make options
  70. ########################################################################
  71. #
  72. OBJS= main.o object.o create.o tok.o display.o global.o data.o\
  73.     io.o monster.o\
  74.     store.o diag.o help.o config.o nap.o bill.o scores.o\
  75.     signal.o moreobj.o\
  76.     movem.o regen.o fortune.o savelev.o $(DOS.O)
  77.  
  78. DOTFILES= larn.hlp larn.maz larn.ftn
  79. OPTFILE= larn.opt
  80.  
  81. CFLAGS= $(OPTIONS) -DLARNHOME='"$(LARNHOME)"' -O
  82.  
  83. all: $(GAME) install
  84.     echo Done.
  85.  
  86. $(GAME): $(OBJS)
  87.     $(CC) $(OBJS) -o $(GAME) $(TERMLIB)
  88.  
  89. $(OBJS): header.h
  90.  
  91. install: $(GAME)
  92.     strip $(GAME)
  93.     mv $(GAME) $(OPTFILE) $(BINDIR)
  94.     mv $(DOTFILES) $(LARNHOME)
  95.